import { SET_MENU_LIST } from "../types";


const infoState={
    menuList:[]
}

export default (state=infoState,action)=>{
    const newState=JSON.parse(JSON.stringify(state))
    switch (action.type){
        case SET_MENU_LIST:
            newState.menuList=action.menuList
            return newState
        default:
            return newState
    }
}